package cn.edu.thu.laud.lasql.parser;

import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;


public  abstract class LaSQLFunctionParser {
	String className;
	private List<String> parameters;
	
	public LaSQLFunctionParser(String className, List<String> parameters) {
		super();
		this.className = className;
		this.parameters = parameters;
	}

	public LaSQLFunctionParser(String string) {
		this.className=string;
		this.parameters=new ArrayList<String>();
	}

	public abstract ByteBuffer getResult() throws Exception;

	public void add(String string) {
		this.parameters.add(string);
	}
	public String getName(){
		return this.className;
	}

	public List<String> getParameters() {
		return parameters;
	}

	public void setParameters(List<String> parameters) {
		this.parameters = parameters;
	}


}
